import React from "react";
import ReactDOM from "react-dom/client";
import persistStore, { store } from "@/store";
import { HashRouter } from "react-router-dom";
import { PersistGate } from "redux-persist/lib/integration/react";
import "@/asset/css/reset.less";
import "md-editor-rt/lib/style.css";
import "@wangeditor/editor/dist/css/style.css";

import App from "./App";
import { Provider } from "react-redux";

const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <HashRouter>
    <PersistGate loading={"加载中"} persistor={persistStore}>
      <Provider store={store}>
        <App />
      </Provider>
    </PersistGate>
  </HashRouter>
);
